﻿@model GameSchool.Models.TeacherGameRegistration

@{
    ViewBag.Title = "EnlistTeacher";
}

@*<h2>EnlistTeacher</h2>*@

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>TeacherGameRegistration</legend>


        <div class="editor-label">
            @Html.LabelFor(model => model.GameID)
        </div>
        <div class="editor-field">
			@Html.DropDownListFor(model => model.GameID, ViewData["listOfGames"] as SelectList, "Veldu leik...")
            @*@Html.EditorFor(model => model.GameID)*@
            @Html.ValidationMessageFor(model => model.GameID)
        </div>



        <div class="editor-label">
            @*@Html.LabelFor(model => model.UserID)*@
        </div>
        <div class="editor-field">
			@Html.Hidden("UserID", ViewData["notandi"])
            
            @Html.ValidationMessageFor(model => model.UserID)
        </div>


		@*@Html.DropDownListFor(model => model.GameID, ViewData["listOfGames"] as SelectList, "Veldu...")*@
		@*   53635bac-c38f-4dcf-9b32-dd9a36c6ada3    prófa þennan*@
        <p>
            <input type="submit" value="Vista" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
